package com.example.common;

public enum ResultStatus {
    SUCCESS(0,"成功"),


    SUCCESS_O(0,"成功"),

    AD_SUCCESS(1,"管理员登录"),

    ERROR(1001,"用户名或密码错误"),

    USER_NOT_EXIST(1002,"用户不存在"),

    USER_OVERDUE(1004,"账号已过期"),

    USER_EXIST(1003,"用户已经存在"),

    USER_MOBILE(1005,"电话号码不存在"),

    USER_LOCK(1003,"账号已禁用");


    private final int code;

    private final String massage;


    ResultStatus(int code, String massage){
        this.code=code;
        this.massage=massage;
    }

    public int getCode() {
        return code;
    }

    public String getMassage() {
        return massage;
    }

    @Override
    public String toString() {
        return "{" +
                "\"code\":" + code +
                ", \"massage\":\"" + massage + '\"' +
                '}';
    }
}
